dnd: Use GtkGestureDrag to initiate DnD
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 28 Mar 2014 22:23:38 +0000 (23:23 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 23 May 2014 17:54:24 +0000 (19:54 +0200)
commitb0eef458d1b6a61a39420bb061fc2fb03394dc45
tree325f316508352e2e1e0e9b77c902ca4a4bf9bdb1
parent6c787165312ac65488db9e68c0d32fdd5cdb53ea
dnd: Use GtkGestureDrag to initiate DnD

This gesture is used by gtk_drag_source_set() to determine
whether dragging moved past the threshold. The gesture events
are handled via the usual ::event callbacks, so we don't mess
up with callers expecting that to happen in a signal handler.

If the sequence gets claimed somewhere else in the event widget
stack, the DnD gesture will be cancelled.
gtk/gtkdnd.c